<?php

namespace Admin\Model;

use Think\Model;
use Think\Model\RelationModel;

class AuthRuleModel extends RelationModel
{

    protected $_link = array(
        'AuthRule' => array(
            'mapping_type' => self::HAS_MANY,
//            'class_name' => 'Article',
//            'foreign_key' => 'parent_id',
            'mapping_name' => 'children',
            'parent_key' => 'parent_id',
            'mapping_order' => 'sort asc',
            ),
    );
}